package hu.bme.mit.mdsd.csipetcsapat.appstore.core;

import java.util.Set;

/*
 * Class implementation of User Entity
 */
public class User  {
	private String loginName;
	private String password;
	private int credit;
	private BankAccountNumber bankAccountNumber;
	private Set<Role> roles;
	
	/*
	 * Get roles of User
	 */
	public Set<Role> getRoles() {
		return roles;
	}
	
	/*
	 * Set roles of User
	 */
	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}
	
	/*
	 * Add role to roles of User
	 */
	public void addRole(Role newRole) {
		roles.add(newRole);
	}
	
	/*
	 * Remove role from roles of User
	 */
	public void removeRole(Role oldRole) {
		roles.remove(oldRole);
	}
	
	/*
	 * Get loginName
	 */
	public String getLoginName() {
		return loginName;
	}
	
	/*
	 * Set loginName
	 */
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	/*
	 * Get password
	 */
	public String getPassword() {
		return password;
	}
	
	/*
	 * Set password
	 */
	public void setPassword(String password) {
		this.password = password;
	}
	/*
	 * Get credit
	 */
	public int getCredit() {
		return credit;
	}
	
	/*
	 * Set credit
	 */
	public void setCredit(int credit) {
		this.credit = credit;
	}
	/*
	 * Get bankAccountNumber
	 */
	public BankAccountNumber getBankAccountNumber() {
		return bankAccountNumber;
	}
	
	/*
	 * Set bankAccountNumber
	 */
	public void setBankAccountNumber(BankAccountNumber bankAccountNumber) {
		this.bankAccountNumber = bankAccountNumber;
	}
}
